<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="../assets/lib/cropper/cropper.css" />
    <link rel="stylesheet" href="../assets/css/user/user_avatar.css" />
  </head>
  <body>
    <div class="layui-card">
      <div class="layui-card-header">更换头像</div>
      <div class="layui-card-body">
        <!-- 图像区域 -->
        <div class="row1">
          <div class="cropper-area">
            <img id="image" src="../assets/images/sample.jpg" alt="" />
          </div>
          <div class="preview-area">
            <div class="pa-1">
              <div class="preview preview-100"></div>
              <p>100x100</p>
            </div>
            <div class="pa-2">
              <div class="preview preview-50"></div>
              <p>50x50</p>
            </div>
          </div>
        </div>
        <!-- 按钮区域 -->
        <div class="row2">
          <input type="hidden" name="id" value="222" />
          <input type="file" id="file" style="display: none" />
          <button type="button" id="btnUpload" class="layui-btn">上传</button>
          <button type="button" id="btnConfirm" class="layui-btn layui-btn-danger">确定</button>
        </div>
      </div>
    </div>

    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/lib/cropper/Cropper.js"></script>
    <script src="../assets/lib/cropper/jquery-cropper.js"></script>
    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/js/baseAPI.js"></script>
    <script src="../assets/js/user/user_avatar.js"></script>
  </body>
</html>
